package org.tis.tools.senior.module.developer.entity.enums;

import org.tis.tools.model.enums.BaseEnum;

import java.io.Serializable;

/**
 * description:
 * IBS工程的构建包类型
 * @author lijh
 * @date 2018/9/5
 **/
public enum ContributionType implements BaseEnum {
    /**
     * 投放类型：G 普通申请
     * M 合并申请
     */
    SYSCONFIG("ibs.systemconfig", "系统构建包"),
    COMMONRESOURCE("ibs.commonresource", "公共资源构建包"),
    BS("ibs.bs", "BS构建包"),
    PRODUCT("ibs.product", "产品构建包"),
    SERVICEDISPLAY("btp.servicedisplay", "服务展示");

    private final String value;

    private final String name;

    ContributionType(final String value, final String name) {
        this.value = value;
        this.name = name;
    }

    @Override
    public Serializable deserialze() {
        return value;
    }

    @Override
    public Serializable getValue() {
        return value;
    }

    @Override
    public String toString() {
        return name;
    }
}
